USE DeltaFlex
GO
IF ( OBJECT_ID('dbo.sp_InsertarConcepte_Factura') IS NOT NULL ) 
   DROP PROCEDURE dbo.sp_InsertarConcepte_Factura
GO

CREATE PROCEDURE sp_InsertarConcepte_Factura
				@IDFACTURA int,
				@IDALBARA int
								
AS
BEGIN
	SET NOCOUNT ON

	DECLARE @IDCONCEPTE_FACTURA int = NEXT VALUE FOR SEQ_CONCEPTE_FACTURA;
	
INSERT INTO dbo.CONCEPTE_FACTURA(IDCONCEPTE_FACTURA,IDFACTURA,IDALBARA)
						  VALUES(@IDCONCEPTE_FACTURA,@IDFACTURA,@IDALBARA)

						 
	END
GO

